#include <iostream>
#include <fstream>
using namespace std;
int z=0;
class sir
	{
	private: 
		char cuvant[100];
	public:
		sir();
		sir(char d[100]);
		void setCuvant(char d[100]);
		char getCar(int d);
		char* getCuvant();
		void operator=(sir S);
	friend ostream& operator<<(ostream& cout,sir S);	
	friend fstream& operator<<(fstream& out,sir S);
	};
class tablou
	{
	private:
		sir pozitie[100];
	public: 
		tablou();
		void addPoz(sir S);
		sir getSir(int d);
		void sorteaza();	
		bool operator<(sir d);
		void operator=(tablou S);
	friend fstream& operator<<(fstream& out,tablou D);
	};

